#!/usr/bin/make -f

DEB_COMPRESS_EXCLUDE := .c

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk

DEB_DH_MAKESHLIBS_ARGS := -V "libnxml0 (>= $(DEB_UPSTREAM_VERSION))"

%: %.in
	sed -e"s,@VERSION@,$(DEB_UPSTREAM_VERSION),g" $< > $@

makebuilddir:: debian/libnxml-depends
	pod2man -c 'Libnxml for Debian GNU/Linux' \
		debian/libnxml-depends > debian/libnxml-depends.1

install/libnxml0-dev::
	install -m755 -D debian/libnxml-depends debian/tmp/usr/bin/libnxml-depends

clean::
	$(RM) debian/libnxml-depends debian/libnxml-depends.1

get-orig-source:
	-uscan --upstream-version 0 --rename
